<div>
  <%= h(@user.fname.blank? ? "User" : @user.fname) %> has <%= pluralize @user.usernames.length, "username" %>.
</div>

<table id="usernames_list">
  <tr>
    <th id="username_col">Username</th>
    <th id="auth_col">Authentication Service</th>    
    <th></th>
  </tr>

  <%= render :partial => "username", :collection => @user.usernames %>

  <tr id="add_button_row">
    <td colspan="3"><%= link_to_remote "Add Username", :url => {:action => "add_username"} %></td>
  </tr>
</table>